
angular
    .module('app.service')
    .service('QuestionService', QuestionService);

QuestionService.$inject = ['API','$http'];
function QuestionService(API,$http) {
    var baseUrl = API+'questions';
    this.list = list;
   
    ////////////////

    function list(workId,subject){
        var params = '?workId='+workId+'&subject='+subject;
        return $http.get(baseUrl+params);
    }
}